﻿#ifndef UTILS_H
#define UTILS_H

#include <QString>
#include <QFileInfo>
#include <QFile>
#include <QDir>
#include "historyrecord.h"


class Utils
{

public:
    Utils();
    static void writeHistory(QString url, QString filePath = "");
    static QVector<QString> loadHistory(QString filePath = "");
    static QVector<HistoryRecord> loadHistoryRecord(QString filePath = "");
    static bool deleteHistroy(QString filePath = "");
    static bool deleteBookMark(QString filePath = "");
    static void writeBookMark(QString url, QString filePath="");
    static QVector<HistoryRecord> loadBookMarkRecord(QString filePath);

    static void deletePathFile(QString filePath);
};
#endif // UTILS_H
